import scrapy


class HangYeBaiQiangItem(scrapy.Item):
    company_name = scrapy.Field()  # 企业名称
    company_area = scrapy.Field()  # 企业所在地区
    origin_url = scrapy.Field()  # 详情页网址
    project_type_first = scrapy.Field()  # 工程分类
    project_type_second = scrapy.Field()  # 施工阶段
    project_type_third = scrapy.Field()  # 工序流程
    business_classification = scrapy.Field()  # 经营分类


class HangYeCompanyCount(scrapy.Item):
    district = scrapy.Field()
    province = scrapy.Field()
    city = scrapy.Field()
    xiaofang = scrapy.Field()
    muqiang = scrapy.Field()
    ganggou = scrapy.Field()
    yijian = scrapy.Field()
    erjian = scrapy.Field()
    sanjian = scrapy.Field()
    sijian = scrapy.Field()
    wujian = scrapy.Field()
    liujian = scrapy.Field()
    qijian = scrapy.Field()
    bajian = scrapy.Field()
    jiujian = scrapy.Field()
    jianzhugongcheng = scrapy.Field()
    xiaofanggongcheng = scrapy.Field()
    zhuangshigongcheng = scrapy.Field()
    jianshegongcheng = scrapy.Field()
    jidianshebei = scrapy.Field()
    jidiangongcheng = scrapy.Field()
    jianzhuanzhuang = scrapy.Field()
    jixieshebei = scrapy.Field()
    tuzhuang = scrapy.Field()
    gangjiegou = scrapy.Field()
    jianzhucailiao = scrapy.Field()
    tongfengshebei = scrapy.Field()
    shebeizulin = scrapy.Field()
    jixiezulin = scrapy.Field()
    xiaofangshebei = scrapy.Field()
    fangfugongcheng = scrapy.Field()
    jianzhushebei = scrapy.Field()
    qizhongjixie = scrapy.Field()


convert_dict_HangYeCompanyCount = {
    "district": "所在大区",
    "province": "所属省市级别",
    'city': "所在城市",
    "xiaofang": "消防",
    "muqiang": "幕墙",
    "ganggou": "钢构",
    "yijian": "一建",
    "erjian": "二建",
    "sanjian": "三建",
    "sijian": "四建",
    "wujian": "五建",
    "liujian": "六建",
    "qijian": "七建",
    "bajian": "八建",
    "jiujian": "九建",
    "jianzhugongcheng": "建筑工程",
    "xiaofanggongcheng": "消防工程",
    "zhuangshigongcheng": "装饰工程",
    "jianshegongcheng": "建设工程",
    "jidianshebei": "机电设备",
    "jidiangongcheng": "机电工程",
    "jianzhuanzhuang": "建筑安装",
    "jixieshebei": "机械设备",
    "tuzhuang": "涂装",
    "gangjiegou": "钢结构",
    "jianzhucailiao": "建筑材料",
    "tongfengshebei": "通风设备",
    "shebeizulin": "设备租赁",
    "jixiezulin": "机械租赁",
    "xiaofangshebei": "消防设备",
    "fangfugongcheng": "防腐工程",
    "jianzhushebei": "建筑设备",
    "qizhongjixie": "起重机械",
}

convert_dict = {
    "company_name": "企业名称",
    "company_area": "企业所在地区",
    'project_type_first': "工程分类",
    'project_type_second': "施工阶段",
    'project_type_third': '工序流程',
    'business_classification': '经营分类',
}
